<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>会员勋章中心 - 星途社交</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary: #5B6EF7;
            --primary-light: #E6E9FF;
            --secondary: #FF7D54;
            --success: #36D399;
            --warning: #FFAB00;
            --danger: #F87171;
            --purple: #A78BFA;
            --dark: #1E293B;
            --gray: #64748B;
            --light-gray: #F1F5F9;
            --border: #CBD5E1;
            --radius: 12px;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            color: var(--dark);
            background-color: #F8FAFC;
            line-height: 1.6;
            padding-top: 2rem;
            padding-bottom: 3rem;
        }
        
        .container {
            max-width: 1200px;
        }
        
        .page-header {
            margin-bottom: 2.5rem;
            text-align: center;
        }
        
        .page-title {
            font-size: 2.25rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 0.5rem;
            position: relative;
            display: inline-block;
        }
        
        .page-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 10%;
            width: 80%;
            height: 4px;
            background-color: var(--primary-light);
            border-radius: 2px;
        }
        
        .page-subtitle {
            color: var(--gray);
            font-size: 1.1rem;
            max-width: 700px;
            margin: 0 auto;
        }
        
        .badges-section {
            margin-bottom: 3rem;
        }
        
        .section-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .section-title i {
            color: var(--primary);
        }
        
        /* 等级勋章样式 */
        .level-badges {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .badge-card {
            background-color: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 1.5rem;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }
        
        .badge-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        
        .badge-card.current {
            border-color: var(--primary);
            position: relative;
        }
        
        .badge-card.current::after {
            content: '当前等级';
            position: absolute;
            top: -10px;
            right: -10px;
            background-color: var(--primary);
            color: white;
            font-size: 0.75rem;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            box-shadow: 0 2px 8px rgba(91, 110, 247, 0.3);
        }
        
        .badge-icon-container {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            margin: 0 auto 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        
        .badge-icon {
            font-size: 3rem;
            z-index: 2;
        }
        
        .badge-glow {
            position: absolute;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
            z-index: 1;
        }
        
        .badge-level {
            font-weight: 700;
            font-size: 1.25rem;
            margin-bottom: 0.25rem;
        }
        
        .badge-name {
            color: var(--gray);
            font-size: 0.95rem;
            margin-bottom: 1rem;
        }
        
        .badge-requirements {
            font-size: 0.85rem;
            color: var(--gray);
            padding-top: 0.75rem;
            border-top: 1px dashed var(--border);
        }
        
        /* 成就勋章样式 */
        .achievement-badges {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 1.5rem;
        }
        
        .achievement-card {
            background-color: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 1.25rem;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        
        .achievement-card.unlocked {
            border: 1px solid var(--success);
        }
        
        .achievement-card.locked {
            opacity: 0.6;
            filter: grayscale(100%);
        }
        
        .achievement-icon {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            margin: 0 auto 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
        }
        
        .achievement-title {
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 0.5rem;
        }
        
        .achievement-desc {
            font-size: 0.85rem;
            color: var(--gray);
            margin-bottom: 0.75rem;
            flex-grow: 1;
        }
        
        .achievement-meta {
            font-size: 0.8rem;
            color: var(--primary);
            font-weight: 500;
        }
        
        .lock-overlay {
            position: relative;
        }
        
        .lock-overlay::after {
            content: '\f023';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 1.5rem;
            color: var(--gray);
            background-color: rgba(255, 255, 255, 0.8);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* 特殊勋章样式 */
        .special-badges {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }
        
        .special-badge-card {
            background-color: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            display: flex;
            transition: all 0.3s ease;
        }
        
        .special-badge-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }
        
        .special-badge-icon-container {
            flex: 0 0 120px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .special-badge-icon {
            width: 90px;
            height: 90px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
        }
        
        .special-badge-details {
            flex: 1;
            padding: 1.5rem;
        }
        
        .special-badge-title {
            font-weight: 700;
            font-size: 1.25rem;
            margin-bottom: 0.5rem;
        }
        
        .special-badge-desc {
            font-size: 0.95rem;
            color: var(--gray);
            margin-bottom: 1rem;
        }
        
        .special-badge-meta {
            display: flex;
            gap: 1.5rem;
            font-size: 0.85rem;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        
        /* 勋章收集进度 */
        .collection-progress {
            background-color: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .progress-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            margin-bottom: 1.5rem;
        }
        
        .progress-stat {
            flex: 1;
            min-width: 150px;
            text-align: center;
        }
        
        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.25rem;
        }
        
        .stat-label {
            font-size: 0.9rem;
            color: var(--gray);
        }
        
        .progress-bar-container {
            height: 10px;
            background-color: var(--light-gray);
            border-radius: 5px;
            overflow: hidden;
            margin-bottom: 0.5rem;
        }
        
        .progress-bar {
            height: 100%;
            border-radius: 5px;
            background: linear-gradient(90deg, var(--primary) 0%, var(--purple) 100%);
            transition: width 1s ease-in-out;
        }
        
        .progress-text {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            color: var(--gray);
        }
        
        /* 勋章颜色方案 */
        .level-1 .badge-icon-container {
            background-color: #EFF6FF;
        }
        
        .level-1 .badge-icon {
            color: #2563EB;
        }
        
        .level-2 .badge-icon-container {
            background-color: #DBEAFE;
        }
        
        .level-2 .badge-icon {
            color: #1D4ED8;
        }
        
        .level-3 .badge-icon-container {
            background-color: #BFDBFE;
        }
        
        .level-3 .badge-icon {
            color: #1E40AF;
        }
        
        .level-4 .badge-icon-container {
            background-color: #93C5FD;
        }
        
        .level-4 .badge-icon {
            color: #1E3A8A;
        }
        
        .level-5 .badge-icon-container {
            background-color: #60A5FA;
        }
        
        .level-5 .badge-icon {
            color: #1E40AF;
        }
        
        .level-6 .badge-icon-container {
            background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
        }
        
        .level-6 .badge-icon {
            color: white;
        }
        
        .type-creator .achievement-icon {
            background-color: rgba(255, 125, 84, 0.1);
            color: var(--secondary);
        }
        
        .type-social .achievement-icon {
            background-color: rgba(54, 211, 153, 0.1);
            color: var(--success);
        }
        
        .type-event .achievement-icon {
            background-color: rgba(255, 171, 0, 0.1);
            color: var(--warning);
        }
        
        .type-special .achievement-icon {
            background-color: rgba(167, 139, 250, 0.1);
            color: var(--purple);
        }
        
        .badge-legendary .special-badge-icon {
            background: linear-gradient(135deg, #F59E0B 0%, #EC4899 100%);
            color: white;
        }
        
        .badge-epic .special-badge-icon {
            background: linear-gradient(135deg, #8B5CF6 0%, #4F46E5 100%);
            color: white;
        }
        
        .badge-rare .special-badge-icon {
            background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
            color: white;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .special-badges {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 768px) {
            .level-badges {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            }
            
            .achievement-badges {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
            
            .badge-icon-container {
                width: 80px;
                height: 80px;
            }
            
            .badge-icon {
                font-size: 2.25rem;
            }
            
            .special-badge-icon-container {
                flex: 0 0 100px;
            }
            
            .special-badge-icon {
                width: 70px;
                height: 70px;
                font-size: 2rem;
            }
        }
        
        @media (max-width: 576px) {
            .page-title {
                font-size: 1.75rem;
            }
            
            .level-badges, .achievement-badges {
                grid-template-columns: 1fr 1fr;
            }
            
            .special-badge-card {
                flex-direction: column;
                text-align: center;
            }
            
            .special-badge-icon-container {
                flex: none;
                padding: 1rem 0;
            }
            
            .special-badge-details {
                padding: 0 1rem 1rem;
            }
            
            .special-badge-meta {
                justify-content: center;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 页面标题 -->
        <div class="page-header">
            <h1 class="page-title">会员勋章中心</h1>
            <p class="page-subtitle">探索并收集各种勋章，展示你的社区成就与身份</p>
        </div>
        
        <!-- 勋章收集进度 -->
        <div class="collection-progress">
            <h2 class="section-title"><i class="fas fa-trophy"></i> 勋章收集进度</h2>
            <div class="progress-stats">
                <div class="progress-stat">
                    <div class="stat-number">24</div>
                    <div class="stat-label">已获得勋章</div>
                </div>
                <div class="progress-stat">
                    <div class="stat-number">68</div>
                    <div class="stat-label">总勋章数</div>
                </div>
                <div class="progress-stat">
                    <div class="stat-number">35%</div>
                    <div class="stat-label">完成率</div>
                </div>
            </div>
            <div class="progress-bar-container">
                <div class="progress-bar" style="width: 35%;"></div>
            </div>
            <div class="progress-text">
                <span>继续努力，解锁更多勋章！</span>
                <span>距离下一阶段：11枚勋章</span>
            </div>
        </div>
        
        <!-- 等级勋章 -->
        <div class="badges-section">
            <h2 class="section-title"><i class="fas fa-signal"></i> 等级勋章</h2>
            <p class="text-muted mb-4">提升会员等级，解锁对应的等级勋章，彰显你的社区地位</p>
            
            <div class="level-badges">
                <div class="badge-card level-1">
                    <div class="badge-icon-container">
                        <div class="badge-glow"></div>
                        <i class="fas fa-seedling badge-icon"></i>
                    </div>
                    <div class="badge-level">Lv.1</div>
                    <div class="badge-name">萌芽者</div>
                    <div class="badge-requirements">0 - 999 经验值</div>
                </div>
                
                <div class="badge-card level-2">
                    <div class="badge-icon-container">
                        <div class="badge-glow"></div>
                        <i class="fas fa-leaf badge-icon"></i>
                    </div>
                    <div class="badge-level">Lv.2</div>
                    <div class="badge-name">成长者</div>
                    <div class="badge-requirements">1000 - 1999 经验值</div>
                </div>
                
                <div class="badge-card level-3">
                    <div class="badge-icon-container">
                        <div class="badge-glow"></div>
                        <i class="fas fa-tree badge-icon"></i>
                    </div>
                    <div class="badge-level">Lv.3</div>
                    <div class="badge-name">探索者</div>
                    <div class="badge-requirements">2000 - 4999 经验值</div>
                </div>
                
                <div class="badge-card level-4 current">
                    <div class="badge-icon-container">
                        <div class="badge-glow"></div>
                        <i class="fas fa-mountain badge-icon"></i>
                    </div>
                    <div class="badge-level">Lv.4</div>
                    <div class="badge-name">攀登者</div>
                    <div class="badge-requirements">5000 - 9999 经验值</div>
                </div>
                
                <div class="badge-card level-5">
                    <div class="badge-icon-container">
                        <div class="badge-glow"></div>
                        <i class="fas fa-star badge-icon"></i>
                    </div>
                    <div class="badge-level">Lv.5</div>
                    <div class="badge-name">星光者</div>
                    <div class="badge-requirements">10000 - 29999 经验值</div>
                </div>
                
                <div class="badge-card level-6">
                    <div class="badge-icon-container">
                        <div class="badge-glow"></div>
                        <i class="fas fa-crown badge-icon"></i>
                    </div>
                    <div class="badge-level">Lv.6</div>
                    <div class="badge-name">守护者</div>
                    <div class="badge-requirements">30000+ 经验值</div>
                </div>
            </div>
        </div>
        
        <!-- 成就勋章 -->
        <div class="badges-section">
            <h2 class="section-title"><i class="fas fa-award"></i> 成就勋章</h2>
            <p class="text-muted mb-4">完成特定任务和挑战，获得对应的成就勋章，展示你的特长与贡献</p>
            
            <div class="achievement-badges">
                <!-- 内容创作类 -->
                <div class="achievement-card unlocked type-creator">
                    <div class="achievement-icon">
                        <i class="fas fa-pen"></i>
                    </div>
                    <h3 class="achievement-title">初露锋芒</h3>
                    <p class="achievement-desc">发布首篇原创内容</p>
                    <div class="achievement-meta">+50 经验值</div>
                </div>
                
                <div class="achievement-card unlocked type-creator">
                    <div class="achievement-icon">
                        <i class="fas fa-fire"></i>
                    </div>
                    <h3 class="achievement-title">热门作者</h3>
                    <p class="achievement-desc">单篇内容获得100+点赞</p>
                    <div class="achievement-meta">+200 经验值</div>
                </div>
                
                <div class="achievement-card unlocked type-creator">
                    <div class="achievement-icon">
                        <i class="fas fa-book"></i>
                    </div>
                    <h3 class="achievement-title">创作达人</h3>
                    <p class="achievement-desc">累计发布50篇原创内容</p>
                    <div class="achievement-meta">+500 经验值</div>
                </div>
                
                <div class="achievement-card locked type-creator">
                    <div class="achievement-icon lock-overlay">
                        <i class="fas fa-microphone"></i>
                    </div>
                    <h3 class="achievement-title">意见领袖</h3>
                    <p class="achievement-desc">累计获得10000+总点赞</p>
                    <div class="achievement-meta">+1000 经验值</div>
                </div>
                
                <!-- 社交互动类 -->
                <div class="achievement-card unlocked type-social">
                    <div class="achievement-icon">
                        <i class="fas fa-handshake"></i>
                    </div>
                    <h3 class="achievement-title">广结善缘</h3>
                    <p class="achievement-desc">关注100位社区用户</p>
                    <div class="achievement-meta">+300 经验值</div>
                </div>
                
                <div class="achievement-card unlocked type-social">
                    <div class="achievement-icon">
                        <i class="fas fa-comments"></i>
                    </div>
                    <h3 class="achievement-title">交流达人</h3>
                    <p class="achievement-desc">发表500条优质评论</p>
                    <div class="achievement-meta">+500 经验值</div>
                </div>
                
                <div class="achievement-card locked type-social">
                    <div class="achievement-icon lock-overlay">
                        <i class="fas fa-users"></i>
                    </div>
                    <h3 class="achievement-title">社交明星</h3>
                    <p class="achievement-desc">获得500位粉丝关注</p>
                    <div class="achievement-meta">+800 经验值</div>
                </div>
                
                <!-- 活动参与类 -->
                <div class="achievement-card unlocked type-event">
                    <div class="achievement-icon">
                        <i class="fas fa-calendar-check"></i>
                    </div>
                    <h3 class="achievement-title">坚持不懈</h3>
                    <p class="achievement-desc">连续签到30天</p>
                    <div class="achievement-meta">+150 经验值</div>
                </div>
                
                <div class="achievement-card unlocked type-event">
                    <div class="achievement-icon">
                        <i class="fas fa-trophy"></i>
                    </div>
                    <h3 class="achievement-title">活动达人</h3>
                    <p class="achievement-desc">参与10场社区活动</p>
                    <div class="achievement-meta">+400 经验值</div>
                </div>
                
                <div class="achievement-card locked type-event">
                    <div class="achievement-icon lock-overlay">
                        <i class="fas fa-medal"></i>
                    </div>
                    <h3 class="achievement-title">冠军得主</h3>
                    <p class="achievement-desc">在社区比赛中获得冠军</p>
                    <div class="achievement-meta">+2000 经验值</div>
                </div>
                
                <!-- 特殊贡献类 -->
                <div class="achievement-card unlocked type-special">
                    <div class="achievement-icon">
                        <i class="fas fa-lightbulb"></i>
                    </div>
                    <h3 class="achievement-title">创意先锋</h3>
                    <p class="achievement-desc">提出的建议被社区采纳</p>
                    <div class="achievement-meta">+600 经验值</div>
                </div>
                
                <div class="achievement-card locked type-special">
                    <div class="achievement-icon lock-overlay">
                        <i class="fas fa-shield-alt"></i>
                    </div>
                    <h3 class="achievement-title">社区卫士</h3>
                    <p class="achievement-desc">举报100条违规内容</p>
                    <div class="achievement-meta">+800 经验值</div>
                </div>
            </div>
        </div>
        
        <!-- 特殊勋章 -->
        <div class="badges-section">
            <h2 class="section-title"><i class="fas fa-star"></i> 特殊勋章</h2>
            <p class="text-muted mb-4">限量版特殊勋章，授予对社区有杰出贡献的用户</p>
            
            <div class="special-badges">
                <div class="special-badge-card">
                    <div class="special-badge-icon-container">
                        <div class="special-badge-icon badge-legendary">
                            <i class="fas fa-crown"></i>
                        </div>
                    </div>
                    <div class="special-badge-details">
                        <h3 class="special-badge-title">社区创始人</h3>
                        <p class="special-badge-desc">授予社区早期创建者和核心成员，见证社区的诞生与成长</p>
                        <div class="special-badge-meta">
                            <div class="meta-item">
                                <i class="fas fa-award"></i>
                                <span>传奇品质</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-calendar"></i>
                                <span>2023年授予</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-users"></i>
                                <span>限量10枚</span>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="special-badge-card">
                    <div class="special-badge-icon-container">
                        <div class="special-badge-icon badge-epic">
                            <i class="fas fa-rocket"></i>
                        </div>
                    </div>
                    <div class="special-badge-details">
                        <h3 class="special-badge-title">年度创作者</h3>
                        <p class="special-badge-desc">授予年度最具影响力的内容创作者，表彰其对社区内容生态的贡献</p>
                        <div class="special-badge-meta">
                            <div class="meta-item">
                                <i class="fas fa-award"></i>
                                <span>史诗品质</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-calendar"></i>
                                <span>每年评选</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-users"></i>
                                <span>限量3枚</span>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="special-badge-card">
                    <div class="special-badge-icon-container">
                        <div class="special-badge-icon badge-rare">
                            <i class="fas fa-hands-helping"></i>
                        </div>
                    </div>
                    <div class="special-badge-details">
                        <h3 class="special-badge-title">社区志愿者</h3>
                        <p class="special-badge-desc">授予为社区提供志愿服务的用户，感谢其在社区管理和帮助新用户方面的贡献</p>
                        <div class="special-badge-meta">
                            <div class="meta-item">
                                <i class="fas fa-award"></i>
                                <span>稀有品质</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-calendar"></i>
                                <span>季度更新</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-users"></i>
                                <span>限量50枚</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 勋章卡片悬停效果增强
            const badgeCards = document.querySelectorAll('.badge-card, .achievement-card, .special-badge-card');
            
            badgeCards.forEach(card => {
                card.addEventListener('mouseenter', function() {
                    this.style.transform = 'translateY(-8px)';
                    this.style.boxShadow = '0 12px 25px rgba(0, 0, 0, 0.12)';
                });
                
                card.addEventListener('mouseleave', function() {
                    this.style.transform = '';
                    this.style.boxShadow = '';
                });
            });
            
            // 为锁定的勋章添加点击提示
            const lockedBadges = document.querySelectorAll('.achievement-card.locked');
            lockedBadges.forEach(badge => {
                badge.addEventListener('click', function() {
                    const title = this.querySelector('.achievement-title').textContent;
                    alert(`"${title}"勋章尚未解锁！完成相应成就即可获得。`);
                });
            });
            
            // 进度条动画效果
            const progressBar = document.querySelector('.progress-bar');
            setTimeout(() => {
                progressBar.style.width = '35%';
            }, 500);
        });
    </script>
</body>
</html>

